﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Globalization;

using CE.Configuration;
using CE.Global;
using CE.User;
using CE.Image;
using CE.CarInsurance;
using CE.Mail;
using CE.Company;
using CE.Database;
using CE.Promotion;
using CE.Security;
public partial class promotion_car_insurance_promotion : MyLanguageBasePage
{
    CE.User.Profile _profile = null;
    CE.User.ProfileDB _profiledb = null;
    Contact _contact = null;
    ContactDB _contactdb = null;
    string _redirectUrl = "";
    protected override void InitializeCulture()
    {
        String selectedCulture = CE.Global.General.SetCulture();
        base.InitializeCulture();
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Page.Title = Resources.Title.ProTitle; 
        LiteralControl newln = new LiteralControl(Environment.NewLine);
        HtmlMeta language = new HtmlMeta();
        language.Name = "language";
        language.Content = Resources.Title.PageLanguage;

        HtmlMeta keywords = new HtmlMeta();
        keywords.Name = "keywords";
        keywords.Content = Resources.Title.ProKeyword;
        HtmlMeta description = new HtmlMeta();
        description.Name = "description";
        description.Content = Resources.Title.ProDescription;

        Page.Header.Controls.AddAt(10, new LiteralControl(Environment.NewLine));
        Page.Header.Controls.AddAt(11, language);
        Page.Header.Controls.AddAt(12, new LiteralControl(Environment.NewLine));
        Page.Header.Controls.AddAt(13, keywords);
        Page.Header.Controls.AddAt(14, new LiteralControl(Environment.NewLine));
        Page.Header.Controls.AddAt(15, description);

        if (!IsPostBack)
        {
            string _PromoUrl = CE.Global.General.GetUrl("/promotion/promo-call-me", Page);
            hplNewPromo1.NavigateUrl = _PromoUrl + "?type=1";
            hplNewPromo2.NavigateUrl = _PromoUrl + "?type=2";
            hplNewPromo3.NavigateUrl = _PromoUrl + "?type=3";
            hplNewPromo4.NavigateUrl = _PromoUrl + "?type=4";
            hplNewPromo5.NavigateUrl = _PromoUrl + "?type=5";
            hplNewPromo6.NavigateUrl = _PromoUrl + "?type=6";
            hplNewPromo7.NavigateUrl = _PromoUrl + "?type=7";
            hplNewPromo8.NavigateUrl = _PromoUrl + "?type=8";
            hplNewPromo9.NavigateUrl = _PromoUrl + "?type=9";
            hplNewPromoCar1.NavigateUrl = _PromoUrl + "?type=1";
            hplNewPromoCar2.NavigateUrl = _PromoUrl + "?type=2";
            hplNewPromoCar3.NavigateUrl = _PromoUrl + "?type=3";
            hplNewPromoCar4.NavigateUrl = _PromoUrl + "?type=4";
            hplNewPromoCar5.NavigateUrl = _PromoUrl + "?type=5";
            hplNewPromoCar6.NavigateUrl = _PromoUrl + "?type=6";
            hplNewPromoCar7.NavigateUrl = _PromoUrl + "?type=7";
            hplNewPromoCar8.NavigateUrl = _PromoUrl + "?type=8";
            hplNewPromoCar9.NavigateUrl = _PromoUrl + "?type=9";

            hplPromo1.NavigateUrl = CE.Global.General.GetUrl("/promotion/car-insurance-promotion-eco-car", Page);
            hplPromo2.NavigateUrl = CE.Global.General.GetUrl("/promotion/car-insurance-promotion-all-pickup-cars-two-doors", Page);
            hplPromo3.NavigateUrl = CE.Global.General.GetUrl("/promotion/car-insurance-promotion-suv-teana-prius", Page);
            hplPromo4.NavigateUrl = CE.Global.General.GetUrl("/promotion/car-insurance-promotion-sedan-pickup-four-doors", Page);
            hplPromo5.NavigateUrl = CE.Global.General.GetUrl("/promotion/car-insurance-promotion-sedan-pickup-low-cost", Page);
            hplPromo6.NavigateUrl = CE.Global.General.GetUrl("/promotion/car-insurance-promotion-sedan-pickup-old-car", Page);
        }
    }

}
